#include "stdafx.h"
#include "Render.h"
#include "config/IncludeParts.h"
#include "config/Def.h"

#if RENDER_GL
#include "GLRender.h"
#endif

using namespace unigame;

Render* Render::s_instance = 0;

Render* Render::instance()
{
    if(!s_instance)
    {
#if RENDER_GL
        s_instance = uni_new GLRender();
#endif
    }
    return s_instance;
}

void Render::destroy()
{
	uni_delete(s_instance);
}